home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / src / OS2 / os2src / stdlog.c < prev    next >
C/C++ Source or Header  |  1997-08-05  |  331b  |  17 lines

  1. #include<stdio.h>
  2. #include<stdarg.h>
  3.  
  4. void stdlog(char *fmt,...)
  5. /*======================*/
  6. {  FILE *F;
  7.    char buf[4086]="";
  8.    va_list argptr;
  9.    va_start(argptr, fmt);
  10.    vsprintf(buf, fmt, argptr);
  11.    va_end(argptr);
  12.    F=fopen("c:/tmp/log.pvm","at");
  13.    if(F){ fprintf(F,buf);
  14.           fclose(F);
  15.         }
  16. }
  17.